package com.shanzmoo.admin.domain.dto;

import cn.hutool.core.bean.BeanUtil;
import com.shanzmoo.db.store.entity.StorePurchaseBillDetailEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 采购单明细 更新对象
 *
 * @author xueqz 2021-03-07
 */
@Data
@ApiModel("采购单明细-更新对象")
public class StorePurchaseBillDetailUpdateDTO extends StorePurchaseBillDetailSaveDTO{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    private Integer id;












    public StorePurchaseBillDetailEntity convertEntity() {
        StorePurchaseBillDetailEntity target = new StorePurchaseBillDetailEntity();
        BeanUtil.copyProperties(this, target, true);
        return target;
    }
}
